/*
 *
 * Copyright (c) 2006- CE, Inc.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * CE Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with CE.
 */
package com.ce.webframework.sec.dao;

import java.util.List;

import com.ce.webframework.sec.model.SecMenuitemDO;
import com.ce.webframework.sec.model.SecUserinfoDO;
import com.sitechasia.webx.core.dao.IDomainObjectDao;
import com.sitechasia.webx.core.support.Page;

/**
 *
 * 用户Dao
 *
 */
public interface ISecUserinfoDao extends IDomainObjectDao<SecUserinfoDO> {

	/**
	 * 根据客户号和用户号得到用户信息
	 *
	 * @param username
	 * @param password
	 * @return
	 */
	public SecUserinfoDO getSecUser(String usercode, String password);

	/**
	 * 得到分页用户信息
	 *
	 * @param userCode
	 * @param userName
	 * @param email
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public Page getSecUsers(String userCode, String userName, String email, int pageNo, int pageSize,
			String sortStr);

	/**
	 * 用户增加
	 * @param SecUserinfoDO
	 */
	public void addSecUser(SecUserinfoDO userinfoDO);

	public SecUserinfoDO findById(Long id);

	public void updateSecUser(SecUserinfoDO userinfoDO);

	public Page getUsers(String userCode, String userName, String sex, int pageNo, int pageSize,
			String sortStr);

	public void deleteSecUser(String[] delList);

	public List<SecMenuitemDO> getMenuItemList(List<String> menuCodes, Long epId);
}
